<?php

namespace StudyBuddy\Math;

use \StudyBuddy\Math\Expression;
use \StudyBuddy\Math\MathBase;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of ExpressionTexte
 */
class ExpressionTexte extends Expression {

    //put your code here

    public function __construct($exp) {
        $this->texte = $exp;
    }

//    
//    public function ExpressionTexte($exp) {
//        $this->texte = $exp;
//    }

    public function dessine($taille) {
        $math_base = new MathBase();
        $this->image = $math_base->affiche_math($this->texte, $taille);
        $this->base_verticale = imagesy($this->image) / 2;
    }

}

?>
